package com.after.saas.user.service;

import com.after.saas.user.model.User;
import com.after.saas.common.model.bo.UserBO;
import com.after.saas.common.model.query.UserQuery;
import com.after.saas.common.model.vo.UserVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hjchen
 * @since 2021-07-17
 */
public interface UserService extends IService<User> {

    Boolean batchSave(List<UserBO> boList);

    UserVO findOne(UserQuery query);

    UserVO findById(Long id);

    Page<UserVO> queryByPage(UserQuery query);

    List<UserVO> queryAll(UserQuery query);
}
